FROM openjdk:8

COPY banach-prema-app.jar /app.jar

EXPOSE 10004
#设置时区
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

ENTRYPOINT  java -javaagent:/opt/skywalking/skywalking-agent.jar -Dskywalking.agent.service_name=banach-prema-app -jar -Xms256m -Xmx1024m -Dspring.profiles.active=$prod app.jar
